<?php

/*

  Action	$5

  +2 Cards, +1 Action.

 */

class Laboratory extends Card implements iAction, iKingdom, iBasic {

    public function __construct() {
        parent::__construct("Laboratory", 5);
        $this->undoPlay = false;
        $this->undoBuy = true;
    }

    public function getDescription() {
        return array(
            "+2 Cards",
            "+1 Action");
    }
    
    public function play(Game $game, $isRealCard) {
        $game->addActions(1);
        $drawed_cards = $game->drawCards(2);
        
         ScreenDisplay::addScreenMessage($game, true, "get +1 action and draw ".  nicePrint($drawed_cards), "gets +1 action and draws ".sizeof($drawed_cards). " cards");
        $game->cardActionFinished();
        return true;
    }

}

?>